/*Color brand*/
:root {
	--camel: #f8eee6;
	--lightBlue: #b9d7f2;
	--pink: #f6b6b8;
	--purple: #6B2138;
	--orange: #e95226;
	--yellow: #d0c460;
	--brown: #4d4342;
	--darkGreen: #2f5a4a;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/*Polices d'ecriture*/
@font-face {
	font-family: 'poppins';
	src: url('../fonts/Poppins-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'lora';
	src: url('../fonts/Lora-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

.headPage {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	margin-top: 7vw;
}

.insta,
.insta2 {
	background-color: #fff;
	width: 15vw;
	height: 17vw;
	box-shadow:
		0 1px 1px rgba(0, 0, 0, 0.12),
		0 2px 2px rgba(0, 0, 0, 0.12),
		0 4px 4px rgba(0, 0, 0, 0.12),
		0 8px 8px rgba(0, 0, 0, 0.12);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	font-family: lora, sans-serif;
}

.insta {
	transform: rotate(-2deg);
}

.insta2 {
	transform: rotate(3deg);
}

.insta:hover,
.insta2:hover {
	box-shadow:
		0 4px 4px rgba(0, 0, 0, 0.25),
		0 8px 8px rgba(0, 0, 0, 0.25),
		0 16px 16px rgba(0, 0, 0, 0.25),
		0 32px 32px rgba(0, 0, 0, 0.25);
	transform: rotate(0deg) scale(1.05);
}

.insta img,
.insta2 img {
	width: 12vw;
	height: 12vw;
	object-fit: cover;
}

.insta h3,
.insta2 h3,
.insta .highlight-text,
.insta2 .highlight-text {
	font-size: 1.5vw;
	color: var(--purple);
}

.insta .highlight-text,
.insta2 .highlight-text {
	font-family: lora, sans-serif;
	margin: 0;
}

.premiereSection {
	margin-top: 7vw;
	margin-bottom: 6vw;
}

h1.ltraf {
	font-family: poppins, sans-serif;
	font-size: 3vw;
	letter-spacing: 1px;
	font-weight: bold;
	margin: auto;
	display: flex;
	justify-content: center;
	color: var(--brown);
	max-width: 50vw;
    text-align: center;
}

h2.subtitleLtraf {
	font-family: poppins, sans-serif;
	font-style: italic;
	font-size: 1.2vw;
	font-weight: 500;
	margin: auto;
	display: flex;
	justify-content: center;
	margin-top: 3vw;
	color: var(--brown);
	text-align: center;
}

.souris {
	display: flex;
	justify-content: center;
	margin: 5vw 0;
}

.mouseLtraf {
	width: 30px;
	height: 50px;
	border: 2px solid var(--brown);
	border-radius: 25px;
	position: relative;
	margin-left: auto;
	margin-right: auto;
}

.scrollerMouseLtraf {
	width: 6px;
	height: 10px;
	background-color: var(--brown);
	border-radius: 3px;
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	animation: scroll 2s infinite;
}

@keyframes scroll {
	0% {
		top: 10px;
	}

	50% {
		top: 15px;
	}

	100% {
		top: 10px;
	}
}

.lastestEvent {
    margin:  2vw 0 0 auto;
	text-align: center;
}

.galleryBackground {
	position: relative;
	padding: 3vw 8vw 6vw;
	overflow: hidden;
}

.galleryGrid {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(4, 1fr);
	z-index: 0;
	pointer-events: none;
}

.galleryGrid div {
	opacity: 0.7;
}


.gallery-grid-1 {
	grid-area: 1 / 1 / 2 / 3;
	background-color: var(--purple);
}

.gallery-grid-2 {
	grid-area: 1 / 3 / 2 / 4;
	background-color: var(--pink);
}

.gallery-grid-3 {
	grid-area: 1 / 4 / 2 / 7;
	background-color: var(--purple);
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
}

.gallery-grid-3 h2{
    color: var(--pink);
    font-family: lora;
    font-size: 1.8vw;
}

.gallery-grid-3 p{
    color: var(--pink);
    font-family: lora;
    font-size: 1.2vw;
    max-width: 80%;
}

.gallery-grid-4 {
	grid-area: 2 / 1 / 3 / 2;
	background-color: var(--pink);
}

.gallery-grid-5 {
	grid-area: 2 / 2 / 3 / 5;
	background-color: var(--purple);
}

.gallery-grid-6 {
	grid-area: 2 / 5 / 3 / 7;
	background-color: var(--pink);
}

.gallery-grid-7 {
	grid-area: 3 / 1 / 4 / 3;
	background-color: var(--purple);
}

.gallery-grid-8 {
	grid-area: 3 / 3 / 4 / 4;
	background-color: var(--pink);
}

.gallery-grid-9 {
	grid-area: 3 / 4 / 4 / 7;
	background-color: var(--purple);
}

.gallery-grid-10 {
	grid-area: 4 / 1 / 5 / 4;
	background-color: var(--pink);
}

.gallery-grid-11 {
	grid-area: 4 / 4 / 5 / 6;
	background-color: var(--purple);
}

.gallery-grid-12 {
	grid-area: 4 / 6 / 5 / 7;
	background-color: var(--pink);
}

.galleryContent {
    margin-top: 13vw;
	position: relative;
	z-index: 1;
}

.titleLastestEvent {
	font-family: poppins, sans-serif;
	font-size: 3vw;
	color: var(--purple);
	margin-bottom: 2vw;
}

.descriptionLastestEvent {
	font-family: poppins, sans-serif;
	font-size: 1.3vw;
	color: var(--brown);
	max-width: 70vw;
	margin: 0 auto 3vw;
}

.gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2vw;
	justify-items: center;
}

.gallery-image {
	width: 100%;
	height: 22vw;
	object-fit: cover;
	border-radius: 12px;
	box-shadow:
		0 4px 8px rgba(0, 0, 0, 0.15),
		0 8px 16px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
	transform: scale(1.03);
	box-shadow:
		0 8px 16px rgba(0, 0, 0, 0.2),
		0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Tablette - Écrans moyens en portrait ou paysage tactile */
@media screen and ((orientation: portrait) and (min-aspect-ratio: 2/3) and (max-width: 1024px)),
       screen and ((orientation: landscape) and (max-width: 1366px) and (hover: none)),
       screen and ((min-width: 769px) and (max-width: 1024px)) {
	.headPage {
		margin-top: 10vw;
	}

	.insta,
	.insta2 {
		width: 18vw;
		height: 20vw;
	}

	.insta img,
	.insta2 img {
		width: 14vw;
		height: 14vw;
	}

	h1.ltraf,
	.titleLastestEvent {
		font-size: 3.5vw;
		text-align: center;
		max-width:none;
	}

	h2.subtitleLtraf {
		font-size: 1.6vw;
		
		text-align: center;
		max-width: 80vw;
	}

	.descriptionLastestEvent {
		font-size: 1.6vw;
	}

	.gallery-image {
		height: 28vw;
	}

	.gallery-grid-3 h2{
		
		font-size: 2.2vw;
	}

	.gallery-grid-3 p{
		font-size: 1.5vw;
		max-width: 90%;
	}

    .galleryContent {
        margin-top: 37vw;
    }

    .lastestEvent {
    margin:  10vw 0 0 auto;
	text-align: center;
}

}

/* Mobile (téléphone) - Détection basée sur le ratio d'aspect et l'orientation */
@media screen and ((orientation: portrait) and (max-aspect-ratio: 2/3)),
       screen and ((max-width: 768px) and (hover: none) and (pointer: coarse)) {
	.headPage {
		flex-direction: column;
		gap: 6vw;
	}

	.insta,
	.insta2 {
		width: 60vw;
		height: 65vw;
	}

	.insta img,
	.insta2 img {
		width: 50vw;
		height: 50vw;
	}

	.insta h3,
	.insta2 h3,
	.insta .highlight-text,
	.insta2 .highlight-text {
		font-size: 4vw;
	}

	h1.ltraf,
	.titleLastestEvent {
		font-size: 7vw;
	}

    .galleryContent {
        margin-top: 37vw;
    }

	h2.subtitleLtraf {
		font-size: 3.5vw;
		margin-top: 4vw;
	}

	.souris {
		margin: 8vw 0;
	}

    .galleryBackground {
        padding: 4vw 6vw 8vw;
        height: 100%;
    }

	.galleryGrid {
		grid-template-rows: repeat(4, 1fr);
	}

	.gallery-grid-3 {
		grid-area: 1 / 1 / 2 / 7;
		padding: 4vw 6vw;
	}

	.gallery-grid-3 h2{
		font-size: 5vw;
		margin-top: 5vw;
	}

	.gallery-grid-3 p{
		font-size: 3.4vw;
		max-width: 100%;
	}

	.descriptionLastestEvent {
		font-size: 3.8vw;
		max-width: 100%;
	}

	.gallery {
		grid-template-columns: 1fr;
		gap: 4vw;
	}

	.gallery-image {
		height: 60vw;
	}

    .lastestEvent {
    margin:  10vw 0 0 auto;
	text-align: center;
}
}

/* Styles pour les carousels d'événement */
.galleryTitle {
    text-align: center;
    font-family: 'lora', serif;
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: 3rem;
}

.carousel-event-container {
    overflow: hidden;
    width: 100%;
    background: transparent;
    position: relative;
    padding: 20px 0;
    margin-bottom: 2rem;
}

.carousel-event {
    display: flex;
    gap: 30px;
    animation: scroll-event 60s linear infinite;
    width: fit-content;
}

.carousel-event:hover {
    animation-play-state: paused;
}

.carousel-reverse {
    animation: scroll-event-reverse 60s linear infinite;
}

.event-image {
    height: 300px;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.event-image:hover {
    transform: scale(1.05);
    box-shadow: 
        0 10px 15px rgba(0, 0, 0, 0.2),
        0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes scroll-event {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-event-reverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive pour les carousels - Mobile */
@media screen and ((orientation: portrait) and (max-aspect-ratio: 2/3)),
       screen and ((max-width: 768px) and (hover: none) and (pointer: coarse)) {
    .galleryTitle {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .event-image {
        height: 200px;
    }
    
    .carousel-event {
        gap: 20px;
        animation: scroll-event 30s linear infinite;
    }
    
    .carousel-reverse {
        animation: scroll-event-reverse 30s linear infinite;
    }
}

/* Modal pour agrandir les images */
.modal-map {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeInModal 0.3s ease;
}

.modal-map.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-map {
    position: relative;
    background-color: #fefefe;
    padding: 4%;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomInModal 0.3s ease;
}

.modal-image-map {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.close-map {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    line-height: 20px;
    z-index: 1001;
}

.close-map:hover,
.close-map:focus {
    color: #000;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomInModal {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
